<!DOCTYPE html>
<!-- 
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.1.1
Version: 2.0.2
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed">
	<!-- BEGIN PAGE CONTENT-->
	<div class="site_content">
		<div class="realtime_content content_box no_table_filter">
			<div>
				<form class="instruct_box" id="formid" method="post">
					<hr />
					<div>
						<div class="form-group form1 row">
							<div class="col-sm-6">
								<label class="col-sm-4">设备地址</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="chargerId"
										name="chargerId" placeholder="请输入16位设备地址">
								</div>
							</div>
							<div class="col-sm-6">
								<label class="col-sm-4">服务费</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="fee_rate"
										name="fee_rate" placeholder="请输入金额">
								</div>
							</div>
						</div>
						<div class="form-group form1 row">
							<div class="col-sm-6">
								<label class="col-sm-4">1号费率</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="rate1" name="rate1"
										placeholder="请输入金额">
								</div>
							</div>
							<div class="col-sm-6">
								<label class="col-sm-4">2号费率</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="rate2" name="rate2"
										placeholder="请输入金额">
								</div>
							</div>
						</div>
						<div class="form-group form1 row">
							<div class="col-sm-6">
								<label class="col-sm-4">3号费率</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="rate3" name="rate3"
										placeholder="请输入金额">
								</div>
							</div>
							<div class="col-sm-6">
								<label class="col-sm-4">4号费率</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="rate4" name="rate4"
										placeholder="请输入金额">
								</div>
							</div>
						</div>
						<div class="form-group form1 row">
							<div class="col-sm-6">
								<label class="col-sm-4" style="padding-left: 0px">执行费费时间点1</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="time1" name="time1"
										placeholder="请输入4位时间，如1530为下午3点半">
								</div>
							</div>
							<div class="col-sm-6">
								<label class="col-sm-4" style="padding-left: 0px">执行费费时间点2</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="time2" name="time2"
										placeholder="请输入4位时间，如1530为下午3点半">
								</div>
							</div>
						</div>
						<div class="form-group form1 row">
							<div class="col-sm-6">
								<label class="col-sm-4" style="padding-left: 0px">执行费费时间点3</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" id="time3" name="time3"
										placeholder="请输入4位时间，如1530为下午3点半">
								</div>
							</div>
							<div class="col-sm-6">
								<label class="col-sm-4">版本号</label>
								<div class="col-sm-8">
									<select class="form-control">
										<option value="0101">0101</option>
										<option value="0102">0102</option>
										<option value="0103" selected="">0103</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer t_c">
						<button type="reset" class="btn btn-warning" data-dismiss="modal">
							<i class="fa fa-refresh"></i> 重置
						</button>
						<button type="button" class="btn btn-primary">
							<i class="fa fa-check"></i> 发送
						</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- END PAGE CONTENT-->
</body>
<script>
	$('button.btn-primary').on('click', function() {
		$.ajax({
			type : 'post',
			//url:'../../userApi/login',
			url : '../setRate',
			//data:{"chargerId":$('#chargerId').val(),"portNo":$('#portNo').val(),"userCard":$('#userCard').val()},
			data : $('#formid').serialize(),
			dataType : "json",
			async : false,
			success : function(data) {
				if (data.code == '200') {
					bootboxWindow.alert("指令下发成功!", null);
				} else {
					bootboxWindow.alert("指令下发失败!", null);
				}
			}
		})
	});
</script>
</html>
